<template>
  <div class="active">
    <img src="../../assets/images/img1.jpeg" alt="">
    <div class="teach" @click="click"><button>"点击"支持我</button></div>
  </div>
</template>

<script>
  export default {
    name: 'active',
    methods: {
      click: function () {
        let sponsorsId = this.$route.query.sponsorsId
        let detailId = this.$route.query.detailId
        this.$router.push('/detail?sponsorsId=' + sponsorsId + '&detailId=' + detailId + '&spreaderId=' + this.$route.query.spreaderId)
      }
    }
  }
</script>

<style lang="less" scoped>
  .active{
    width: 100%;
    height: 100%;
    background: #d3d3d3;
    img{
      width: 100%;
      height: 100%;
      display: block;
    }
    .teach{
      width:29rem;
      height:3.2rem;
      margin:1rem auto;
      background: #f1ae9b url("../../assets/images/click.png") no-repeat 10rem center;
      -webkit-background-size:36/2/10rem 51/2/10rem;
      background-size:36/2/10rem 51/2/10rem;
      border-radius: 0.25rem;
      overflow: hidden;
      button{
        width: 100%;
        height: 100%;
        background: none;
        color: #fff;
        line-height:3.2rem;
        font-size:1.2rem;
        padding-left:4rem;
        box-sizing: border-box;
      }
    }
  }

</style>
